package cn.kimming.wms.web.action;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import cn.kimming.wms.util.UserContext;

@Controller("logoutAction")
@Scope("prototype")
public class LogoutAction extends BaseAction {
	
	private static final long serialVersionUID = 8595729205672173749L;

	@Override
	public String execute() {
		try {
			UserContext.putUser(null);
		} catch(Exception e) {
			e.printStackTrace();
		}
		return LOGIN;
	}
}
